package studentdemo.modul;

public class Teacher {
    private String tno;
    private String tname;
    private String tsex;
    private int tage;
    private String ttitle;
    private String tphone;

    public Teacher() {}

    public Teacher(String tno, String tname, String tsex, int tage, String ttitle, String tphone) {
        this.tno = tno;
        this.tname = tname;
        this.tsex = tsex;
        this.tage = tage;
        this.ttitle = ttitle;
        this.tphone = tphone;
    }

    public String getTno() { return tno; }
    public void setTno(String tno) { this.tno = tno; }
    public String getTname() { return tname; }
    public void setTname(String tname) { this.tname = tname; }
    public String getTsex() { return tsex; }
    public void setTsex(String tsex) { this.tsex = tsex; }
    public int getTage() { return tage; }
    public void setTage(int tage) { this.tage = tage; }
    public String getTtitle() { return ttitle; }
    public void setTtitle(String ttitle) { this.ttitle = ttitle; }
    public String getTphone() { return tphone; }
    public void setTphone(String tphone) { this.tphone = tphone; }

    public String toString() { return tname + "(" + tno + ")"; }
} 